package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Zhuankeyaopin;
import ystp.model.ZhuankeyaopinExample;

public interface ZhuankeyaopinMapper {

    List<Map<String,Object>> findZhuankeBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String,Object>> findZhuankeyaopinByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countZhuankeByXiangmuId(@Param("xiangmuid") String ppxiangmuId,
                                   @Param("drugname") String ppdrugname,
                                   @Param("jiyao") String ppjiyao,
                                   @Param("tongguopingjia") String pptongguopingjia,
                                   @Param("jicaiyao") String ppjicaiyao,
                                   @Param("chuangxinyao") String ppchuangxinyao,
                                   @Param("zhuankefenzu") String ppzhuankefenzu,
                                   @Param("yuxuanyijian") String ppyuxuanyijian,
                                   @Param("beizhu") String ppbeizhu);

    List<Map<String,Object>> findResultByXiangmuIdAndUserid(@Param("xiangmuid") String ppxiangmuId,
                                                            @Param("userid") String ppuserId,
                                                            @Param("drugname") String ppdrugname,
                                                            @Param("jiyao") String ppjiyao,
                                                            @Param("tongguopingjia") String pptongguopingjia,
                                                            @Param("jicaiyao") String ppjicaiyao,
                                                            @Param("chuangxinyao") String ppchuangxinyao,
                                                            @Param("zhuankefenzu") String ppzhuankefenzu,
                                                            @Param("yuxuanyijian") String ppyuxuanyijian,
                                                            @Param("beizhu") String ppbeizhu,

                                                            @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findGuizebianhaoByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findZhuankefenzuByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findZhuankeyaopinResultByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findZhuankeyaopinResult1080ByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    int countByExample(ZhuankeyaopinExample example);

    int deleteByExample(ZhuankeyaopinExample example);

    int deleteByPrimaryKey(String id);

    int insert(Zhuankeyaopin record);

    int insertSelective(Zhuankeyaopin record);

    List<Zhuankeyaopin> selectByExample(ZhuankeyaopinExample example);

    Zhuankeyaopin selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Zhuankeyaopin record, @Param("example") ZhuankeyaopinExample example);

    int updateByExample(@Param("record") Zhuankeyaopin record, @Param("example") ZhuankeyaopinExample example);

    int updateByPrimaryKeySelective(Zhuankeyaopin record);

    int updateByPrimaryKey(Zhuankeyaopin record);
}